Animation effect:
Click here to download the source file
Frame contents of ball in main scene:
Main scene as:gun_mc._rotation=-40;
_root.ang=-40;
_root.total=0;
_root.attachmovie ("Fly", "Fly", 10,{_x:random (+) +220,_y:random (220)
Back to "flash Basic Theory Class-Catalog"
Optimizing Code
We've seen some examples of code optimizations earlier. This is usually done in lieu of multiple executions, or simply not executed.
The piece of code we wrote earlier is just to see it
This is a very cool HTML5 canvas animation, it will simulate the reality of our real life fireworks animation effects, the effect is very realistic, but after all, computer simulation, with a girlfriend to see it, the effect is still poor point,
These two days in the study about as drawing problems, after some toss finally came out, (part of the code from programming Macromedia Flash MX)
As:
MovieClip.prototype.drawRegAng = function (x, y, R, num, rotation) {/* parameter description: x,y:
In this ASP's mathematical function, we will be in the form of tables, let you know about the ASP can be used in the mathematical function, which includes the absolute value of a number, the square root of a number, the angle of the sine, cosine and
Many of the friends who learn flash want to master Flash programming to enhance their flash design capabilities. But most of the friends think that flash is difficult and difficult to learn. Today, the author uses a simple Flash programming example
This tip will give you an insight into the workings of the circle aiming. We'll start with a discussion of how basic techniques work, and then explain a simple iteration that can significantly improve accuracy. I also provide the source code, it is
Javascript| Control
The development of the layer in the practical application of more important, such as floating ads, and so on, I have a brief discussion here.1. Show or hide the control layerBoth methods are in fact controlled style.Method One:
Dynamic
This translator: EgoldyArticle Source: http://www.5etdemi.comArticle Nature: Translation
In addition to the FLASH DRAWING API allows us to draw graphics, we can also use it to draw a mask, which is the characteristic of the rendering of the
At the end of the time we often encounter the pull figure, pull the map is divided into a number of methods this time we start with a relatively simple and practical color range of the cutout
Triple recommended: photoshop7.0 Mini version free
Dynamic | functions | Web page
In this ASP's mathematical function, we will be in the form of tables, let you know about the ASP can be used in the mathematical function, which includes the absolute value of a number, the square root of a number,
The domestic operating system Cos has been published in January 2014 in Beijing, Shanghai Lian Tong and the Chinese Academy of Sciences Software Institute in Beijing jointly issued with independent intellectual property rights of the operating
Through the overall compression technology, COS can significantly reduce the storage space occupied by data, thereby improving the storage efficiency of the physical disk.
The storage-capacity optimization technology (cos,capacity optimized Storage)
Program | object | design
Note: The following references are derived from the >, which has been approved by the author of this book: Luar. If you have any copyright issues, please contact me and erase them immediately. Please specify the
JavaScript write bright light fluctuation effect, see some flash effect is good, with JS also simulate, there are many imperfect places, for you reference.
See Flash's implementation of this kind of animation is very convenient, so try to fool
Random
Let the MC do random move, it is conceivable that frame animation is impossible to achieve, which requires us to do with AS.In general, there are 2 ways to let the MC do random movement with as:
The 1th kind:
1. You can first randomly
Name
Abs
Category
Mathematical functions
Prototype
Abs (number)
Parameters
Must be selected. The number argument is a valid numeric expression of any type
"Return value"
Type of same number
"Exception/Error"
No
Description
Returns the
Object
The JavaScript language is object-based (object-based) rather than object-oriented (object-oriented). It is said to be an object-based language, mainly because it does not provide many features such as abstraction, inheritance, overloading,
Programming
Many of the friends who learn flash want to master Flash programming to enhance their flash design capabilities. But most of the friends think that flash is difficult and difficult to learn. Today, the author uses a simple Flash
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.